package cn.smartaccount.demo.controller;

import cn.smartaccount.demo.dto.Response;
import cn.smartaccount.demo.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuluquan
 * @date 2023-03-02 17:57
 */
@RestController
@RequestMapping(value = "account")
public class AccountController {

    @Autowired
    private AccountService accountService;

    @GetMapping("/getUserInfo")
    public Response getUserInfo(String padSerial) {
        return accountService.getUserInfo(padSerial);
    }


}
